package com.spa.application.command.member;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class MemberOrderEditCommand {

    @NotNull(message = "订单ID必填")
    private Long id;

    @NotNull(message = "项目ID必填")
    private Long serviceId;

    @NotNull(message = "技师ID必填")
    private Long massagistId;

    @NotNull(message = "请选择服数量")
    private Integer orderCount;

    @NotNull(message = "地址ID必填")
    private Long addressId;

    @NotNull(message = "上门时间必填")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date appointTime;

    private String couponId;

}
